package com.ruoyi.syf.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.syf.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("安全分析对象")
public class RiskAnalysisObject extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "危险源编码")
    private String code;

    @ApiModelProperty(value = "对象名称")
    private String name;

    @ApiModelProperty(value = "是否重大危险源，1-重大，0-非重大")
    private String isMajor;

    @ApiModelProperty(value = "排序（升序）")
    private Integer sortOrder;

    @ApiModelProperty(value = "状态，1-启用，0-禁用")
    private Boolean status;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "负责人ID")
    private Long userId;

    @TableField(exist = false)
    private String deptName;
    @TableField(exist = false)
    private String userName;

}
